package com.example.designpattern.behavior.chainofresponbility;

public class HelpDeskServiceImpl implements ISupportService {

	private ISupportService nextHandler;
	@Override
	public void handleRequest(ServiceRequest request) {
		System.out.println("HelpDeskService resolve request: " + request.getLevel());
		if(nextHandler != null) {
			nextHandler.handleRequest(request);
		} else {
			System.out.println("End!");
		}
	}
	public ISupportService getNextHandler() {
		return nextHandler;
	}
	public void setNextHandler(ISupportService nextHandler) {
		this.nextHandler = nextHandler;
	}

}
